<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width">
  <title>Title</title>
  <style>
    .note {
      background: #fff;
      border-radius: 16px;
      padding: 0 16px 16px 16px;
      margin-top: 30px;
      border-top: 2px solid #ccc;
      box-shadow: 0 0 16px -12px #333 inset;
    }
    .note h2 {
      background: #f0f0f0;
      padding: 8px 20px;
      font-weight: normal;
      border-radius: 25px;
    }
    .note h4 {
      margin: 0;
    }
    .note p {
      line-height: 24px;
      margin: 0;
      color: #555;
    }
    .note-item {
      margin-top: 12px;
    }
  </style>
</head>
<body>
<header></header>
<div id="app">
  <button @click.shift.exact="handleClick">小按钮</button>
  <input type="text"  v-model.number="content">
  <button @click="outputType">输出类型</button>
  <pre>{{content}}|</pre>
  <div class="note">
    <h2>课程笔记</h2>
    <div class="note-item">
      <h4>1. 什么是系统修饰符？</h4>
      <p>系统修饰符表示一些系统按键修饰符，官网称之为系统修饰键，可修饰按键事件和鼠标事件</p>
    </div>
    <div class="note-item">
      <h4>2. 系统修饰符有哪些？</h4>
      <p>.ctrl：Ctrl键, .alt：Alt键, .shift：Shift键，.meta：Windows键或Command键, .exact</p>
    </div>
    <div class="note-item">
      <h4>3. 什么是表单修饰符？作用是什么？</h4>
      <p>表单修饰符即官网中的【表单输入绑定/修饰符】，用于修饰v-model</p>
    </div>
    <div class="note-item">
      <h4>4. 表单修饰符有哪些？</h4>
      <p>.trim, .lazy, .number</p>
    </div>
  </div>
</div>
<footer></footer>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script>
  (function () {
    new Vue({
      el: '#app',
      data: {
        content: '123'
      },
      methods: {
        handleClick () {
          alert('click')
        },
        outputType () {
          alert(typeof this.content)
        }
      }
    })
  })()
</script>
</body>
</html>
